import Vue from 'vue'
import App from './App.vue'
import router from "./router"
import store from "./store"
import toast from "components/common/toast"

import FastClick from "fastclick"
import VueLazyLoad from "vue-lazyload"

Vue.config.productionTip = false

Vue.prototype.$bus = new Vue()

//当使用use时，Vue内部会调用传入对象的 install 函数
Vue.use(toast)

Vue.use(VueLazyLoad,{
    loading: require("./assets/img/common/placeholder.png")
})

//解决移动端300毫秒的延迟
FastClick.attach(document.body)

new Vue({
  render: h => h(App),
    router,
    store
}).$mount('#app')
